import request from '@/utils/request'

// ······························· 【综合简报---start】 ····································
// 终端报表-列表
export function getTerminal(params) {
  return request({
    url: '/statistics/channelReportList',
    method: 'get',
    params:params
  })
}

// 设置通道数据
export function setChannelFee(data) {
  return request({
    url: '/statistics/setCastCalculation',
    method: 'post',
    data:data
  })
}
// ······························· 【综合简报---end】 ····································




// ······························· 【牌局分析---start】 ····································
// 牌型统计-列表
export function getStatistics(params) {
  return request({
    url: '/gameRecord/gameTypeReport',
    method: 'get',
    params:params
  })
}

// 牌型统计-导出
export function getStatisticsExport (params) {
  return request({
    url: '/export/gameTypeReportExport',
    method: 'get',
    params:params
  })
}

// 牌型详情-列表
export function getPattern(params) {
  return request({
    url: '/gameRecord/gameTypeList',
    method: 'get',
    params:params
  })
}

// 牌型详情-玩家输赢汇总
export function getWinLosingSummary (params) {
  return request({
    url: '/gameRecord/gameTypeListIncome',
    method: 'get',
    params:params
  })
}

// 牌型详情-导出
export function getPatternExport (params) {
  return request({
    url: '/export/gameListExport',
    method: 'get',
    params:params
  })
}

// 牌型胜率-列表
export function getRate(params) {
  return request({
    url: '/gameRecord/gameTypeRateReport',
    method: 'get',
    params:params
  })
}

// 牌型胜率-导出
export function getRateExport (params) {
  return request({
    url: '/export/gameTypeRateReportExport',
    method: 'get',
    params:params
  })
}

// A豹统计-列表
export function getLeopard(params) {
  return request({
    url: '/gameRecord/gameAModeReport',
    method: 'get',
    params:params
  })
}

// A豹统计-导出
export function getLeopardExport (params) {
  return request({
    url: '/export/gameAModeReportExport',
    method: 'get',
    params:params
  })
}
// ······························· 【牌局分析---end】 ····································





// ······························· 【slot---start】 ····································
// slot分析-列表
export function getSlotRecords (params) {
  return request({
    url: '/gameRecord/slotsGameDailyLog',
    method: 'get',
    params:params
  })
}

// slot分析-汇总
export function getSlotSummy(params) {
  return request({
    url: '/gameRecord/slotsGameDailyListSum',
    method: 'get',
    params:params
  })
}

// slot详情-列表
export function getSlotUser (params) {
  return request({
    url: '/gameRecord/slotsDetailsList',
    method: 'get',
    params:params
  })
}

// slot详情-汇总
export function getSlotUserSummy(params) {
  return request({
    url: '/gameRecord/slotsDetailsListSum',
    method: 'get',
    params:params
  })
}

// slot详情-导出
export function getSlotUserExport (params) {
  return request({
    url: '/export/slotsDetailsExport',
    method: 'get',
    params:params
  })
}
// ······························· 【slot---end】 ····································




// ······························· 【新手分析-流水分析---start】 ····································
// 流水分析-列表
export function getFluvial(params) {
  return request({
    url: '/statistics/getWaterReportList',
    method: 'get',
    params:params
  })
}

// 流水分析-导出
export function getFluvialExport (params) {
  return request({
    url: '/export/getWaterReportListExport',
    method: 'get',
    params:params
  })
}

// 新手分析-列表
export function getNovice(params) {
  return request({
    url: '/statistics/getNewPersonReportList',
    method: 'get',
    params:params
  })
}

// 新手分析-导出
export function getNoviceExport (params) {
  return request({
    url: '/export/getNewPersonReportListExport',
    method: 'get',
    params:params
  })
}
// ······························· 【新手分析-流水分析---end】 ····································




// ······························· 【注册报表---start】 ····································
// 注册报表-列表
export function getRegister(params) {
  return request({
    url: '/statistics/registerStatisticsList',
    method: 'get',
    params:params
  })
}
// ······························· 【注册报表---end】 ····································




// ······························· 【留存统计---start】 ····································
// 充值下注注册留存-列表
export function getRetention(params) {
  return request({
    url: '/statistics/retentionList',
    method: 'get',
    params:params
  })
}

// 3日流失-列表
export function getRunOff(params) {
  return request({
    url: '/statistics/getThreeLoseList',
    method: 'get',
    params:params
  })
}

// 3日流失-统计
export function getRunOffStatistics(params) {
  return request({
    url: '/statistics/getThreeLoseListSum',
    method: 'get',
    params:params
  })
}

// 3日流失-导出
export function getRunOffExport(params) {
  return request({
    url: '/export/loseListExport',
    method: 'get',
    params:params
  })
}
// ······························· 【留存统计---end】 ····································




// ······························· 【前十排名---start】 ····································
// 充值利润佣金排名-列表
export function getRank (params) {
  return request({
    url: '/statistics/rankListNew',
    method: 'get',
    params:params
  })
}
// ······························· 【前十排名---end】 ····································




// ······························· 【埋点统计---start】 ····································
// 埋点统计-列表
export function getBuryingPoint(params) {
  return request({
    url: '/buryingPoint/getList',
    method: 'get',
    params:params
  })
}

// 活动埋点统计-列表
export function getActivityPoint(params) {
  return request({
    url: '/buryingPoint/getActiveList',
    method: 'get',
    params:params
  })
}
// ······························· 【埋点统计---end】 ····································




// ······························· 【游戏报表---start】 ····································
// 游戏报表-汇总
export function getGameSumReport(params) {
  return request({
    url: '/gameManage/gameReportSumList',
    method: 'get',
    params:params
  })
}

// 游戏报表-列表
export function getGameReport(params) {
  return request({
    url: '/gameManage/gameReportList',
    method: 'get',
    params:params
  })
}

// 游戏报表-房间列表
export function getGameReportRoom(params) {
  return request({
    url: '/room/getAllRoom',
    method: 'get',
    params:params
  })
}

// 游戏报表-玩家资金
export function getPlayerMoney(params) {
  return request({
    url: '/gameManage/getLoginUserChangMoney',
    method: 'get',
    params:params
  })
}


// 游戏报表-导出
export function getGameExport (params) {
  return request({
    url: '/gameManage/gameReportListExport',
    method: 'get',
    params:params
  })
}
// ······························· 【游戏报表---end】 ····································




// ······························· 【VIP统计---start】 ····································
// VIP统计-列表
export function getVipReport(params) {
  return request({
    url: '/statistics/vipPersonReportList',
    method: 'get',
    params:params
  })
}
// ······························· 【VIP统计---end】 ····································




// ······························· 【仪表盘---start】 ···································· 
// 今日实时数据汇总-列表
export function getSummary (params) {
  return request({
    url: '/statistics/summaryList',
    method: 'get',
    params:params
  })
}

// 运营总览-列表
export function getOperation (params) {
  return request({
    url: '/statistics/operationsOverview',
    method: 'get',
    params:params
  })
}

// 人数折线图-列表
export function getPersonLine (params) {
  return request({
    url: '/statistics/personLine',
    method: 'get',
    params:params
  })
}

// 玩家活跃-汇总
export function allPlayerActive (params) {
  return request({
    url: '/statistics/userActiveTotalStatistics',
    method: 'get',
    params:params
  })
}

// 玩家活跃-日活跃
export function dayPlayerActive (params) {
  return request({
    url: '/statistics/userActiveDailyStatistics',
    method: 'get',
    params:params
  })
}

// 玩家活跃-周活跃
export function weekPlayerActive (params) {
  return request({
    url: '/statistics/userActiveWeekStatistics',
    method: 'get',
    params:params
  })
}

// 玩家活跃-月活跃
export function monthPlayerActive (params) {
  return request({
    url: '/statistics/userActiveMonthStatistics',
    method: 'get',
    params:params
  })
}

// 玩家活跃-实时在线
export function timePlayerActive (params) {
  return request({
    url: '/user/lineUser',
    method: 'get',
    params:params
  })
}
// ······························· 【仪表盘---end】 ···································· 




// ······························· 【新运营数据总览---start】 ····································
// 新运营总览-列表
export function getOperational (params) {
  return request({
    url: '/statistics/operationsOverviewNew',
    method: 'get',
    params:params
  })
}
// ······························· 【新运营数据总览---end】 ····································




// ······························· 【kol查询---start】 ····································
// Kol-列表
export function getKol (params) {
  return request({
    url: '/user/getKolList',
    method: 'get',
    params:params
  })
}

// Kol顶部-汇总
export function getKolSummy (params) {
  return request({
    url: '/user/getKolTop',
    method: 'get',
    params:params
  })
}
// ······························· 【kol查询---end】 ····································